package com.bhs.sansonglogistics.ui.login;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.annotation.SuppressLint;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.TextView;

import com.bhs.sansonglogistics.R;
import com.bhs.sansonglogistics.base.BaseActivity;
import com.bhs.sansonglogistics.bean.CityBean;
import com.bhs.sansonglogistics.bean.CityDataBean;
import com.bhs.sansonglogistics.net.NetCallBack;
import com.bhs.sansonglogistics.ui.adapter.CityAdapter;
import com.bhs.sansonglogistics.utils.LogUtils;
import com.bhs.sansonglogistics.utils.ToastUtil;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Response;

/**
 * 城市选择器
 */
public class CityPickerActivity extends BaseActivity  {


    private TextView mTvTitle;
    private EditText mEtSearch;
    private RecyclerView mRvProvince;
    private RecyclerView mRvCity;
    private RecyclerView mRvCounty;
    @Override
    public int initLayout() {
        return R.layout.activity_city_picker;
    }

    @Override
    public void initView() {
        mTvTitle = findViewById(R.id.tv_title);
        mEtSearch = findViewById(R.id.et_search);
        mRvProvince = findViewById(R.id.rv_province);
        mRvCity = findViewById(R.id.rv_city);
        mRvCounty = findViewById(R.id.rv_county);
    }

    @Override
    public void initData() {
       new CityPickerReuse(this,mRvProvince,mRvCity,mRvCounty,mEtSearch,false);
    }


}